<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../../inc/global.jsp" 
%>
<h3>${customer.name} 往来账目</h3>
<table>
<thead>
<tr>
<th>时间</th>
<th>入帐</th>
<th>消费</th>
<th>余额</th>
</tr>
</thead>
<tbody>
<c:forEach var="item" items="${list}" varStatus="s">
<c:choose>
<c:when test="${(s.index % 2) != 0}">
<tr class="trbg">
</c:when>
<c:otherwise>
<tr>
</c:otherwise>
</c:choose>
<td><fmt:formatDate pattern="yyyy-MM-dd" value="${item.addTime}" /></td>
<td>
<c:if test="${item.money>=0}">
${item.money}
</c:if>
</td>
<td>
<c:if test="${item.money<0}">
${item.money}
</c:if>
</td>
<Td>${item.balance}</Td>
</tr>
</c:forEach>
</tbody>
</table>
